<?php declare(strict_types=1);
/**
 * Created by IntelliJ IDEA
 * Author: 张伯发
 * Date  : 2019/11/22
 * Time  : 17:41
 */

namespace App\Dto\Cache;


/**
 * 缓存DTO  用户信息
 * Class MembersMessageDTO
 * @author 张伯发 2019/11/22 17:42
 */
class MembersMessageCacheDTO
{

    /**
     * @var
     */
    private $userId;

    /**
     * @var string
     */
    private $username;

    /**
     * @var string
     */
    private $nickname;

    /**
     * @var string
     */
    private $headIcon;

    /**
     * @return string
     */
    public function getUsername(): string
    {
        return $this->username;
    }

    /**
     * @param string $username
     */
    public function setUsername(string $username): void
    {
        $this->username = $username;
    }

    /**
     * @return string
     */
    public function getNickname(): string
    {
        return $this->nickname;
    }

    /**
     * @param string $nickname
     */
    public function setNickname(string $nickname): void
    {
        $this->nickname = $nickname;
    }

    /**
     * @return string
     */
    public function getHeadIcon(): string
    {
        return $this->headIcon;
    }

    /**
     * @param string $headIcon
     */
    public function setHeadIcon(string $headIcon): void
    {
        $this->headIcon = $headIcon;
    }

    /**
     * @return mixed
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * @param mixed $userId
     */
    public function setUserId($userId): void
    {
        $this->userId = $userId;
    }
}
